package structures.xmltable;

import java.io.Serializable;

import analyzers.ExposedAnalyzer;

public class ServiceTableValue implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4094605733193318606L;
	
	private String value;
	private boolean bagTypeParameter;
	
	public ServiceTableValue(String value) {
		super();
		this.value = value;
		this.bagTypeParameter = ExposedAnalyzer.isExposedString(value);
	}
	
	@Override
	public String toString() {
		return value;
	}

	public boolean isBagTypeParameter() {
		return bagTypeParameter;
	}

	public void setBagTypeParameter(boolean bagTypeParameter) {
		this.bagTypeParameter = bagTypeParameter;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public ServiceTableValue clone(){
		return new ServiceTableValue(value);
	}
}
